import request from '../../utils/request';

export const getClassify = () => request('classify',{
  method: 'GET',
});
export const getUserInfo = () => request(`user/info_from_weapp`,{
  method: 'GET',
});
export const getConfigs = (key) => request(`configs/${key}`,{
  method: 'GET',
});
export const getCoupons1 = () => request(`coupons?status=useable`,{
  method: 'GET',
});
export const getCoupons = (status,id) => request(`coupons?status=${status}&userId=${id}`,{
  method: 'GET',
});
